package com.aspose.cells;

class zafk extends zbz {
   zafk(boolean var1) {
      if (var1) {
         this.c(20);
      } else {
         this.c(21);
      }

   }

   void a(String[] var1) {
      byte[][] var2 = new byte[3][];
      this.b(3);
      int var3 = 0;
      if (var1 != null) {
         int var4;
         for(var4 = 0; var4 < 3; ++var4) {
            String var5 = var1[var4];
            if (var5 != null && !"".equals(var5)) {
               switch(var4) {
               case 0:
                  if (!var5.startsWith("&L")) {
                     var5 = "&L" + var5;
                  }
                  break;
               case 1:
                  if (!var5.startsWith("&C")) {
                     var5 = "&C" + var5;
                  }
                  break;
               case 2:
                  if (!var5.startsWith("&R")) {
                     var5 = "&R" + var5;
                  }
               }

               var2[var4] = Encoding.getUnicode().a(var5);
               this.b(this.d() + (short)var2[var4].length);
               var3 += var5.length();
            }
         }

         this.c = new byte[this.d()];
         System.arraycopy(com.aspose.cells.b.a.zc.a((short)var3), 0, this.c, 0, 2);
         this.c[2] = 1;
         var4 = 3;

         for(int var6 = 0; var6 < 3; ++var6) {
            if (var2[var6] != null) {
               System.arraycopy(var2[var6], 0, this.c, var4, var2[var6].length);
               var4 += var2[var6].length;
            }
         }
      }

   }

   void a(zqa var1) throws Exception {
      if (this.c == null) {
         var1.a(this.f());
         var1.c(0);
      } else {
         super.a(var1);
      }

   }
}
